home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global CR, menuText, linePtr, offsetPtr, tempText, displayLines, scrDnCast
- if menuText <> EMPTY then
- set tempText to field 441
- set totLines to the number of lines in menuText
- set the castNum of sprite clickOn() to scrDnCast + 1
- updateStage()
- repeat while the mouseDown
- if offsetPtr < (totLines - displayLines) then
- set offsetPtr to offsetPtr + 1
- delete line 1 of tempText
- set tempText to tempText & CR & line offsetPtr + displayLines of menuText
- put tempText into field 441
- if the locH of sprite 48 < 1000 then
- set theLocV to the locV of sprite 48
- set the visible of sprite 48 to 0
- set theLocV to theLocV - the textHeight of field 441
- set the locV of sprite 48 to theLocV
- if (theLocV < the bottom of sprite 39) and (theLocV >= the top of sprite 39) then
- if rollOver(41) then
- set the visible of sprite 48 to 1
- end if
- end if
- end if
- setScroll(47, offsetPtr, totLines, 441)
- updateStage()
- end if
- end repeat
- set the castNum of sprite clickOn() to scrDnCast
- updateStage()
- else
- set me to the clickOn
- set x to the castNum of sprite me
- set the castNum of sprite me to x + 1
- repeat while the mouseDown
- updateStage()
- end repeat
- set the castNum of sprite me to x
- updateStage()
- if rollOver(me) then
- nothing()
- end if
- end if
- end
-